package com.link.gateway.base.user.service;

import com.link.gateway.base.user.dao.mybatis.mapper.UserMapper;
import com.link.gateway.base.user.model.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserServiceImpl implements UserService {
    @Resource
    private UserMapper userMapper;

    @Override
    public User queryUserByClient(String clientId) {

        return userMapper.queryByClientId(clientId);
    }

    /**
     * 通过用户名查询用户信息
     * @author  黄龙建
     * @date 2020年07月21日
     */
    @Override
    public User queryByUsername(String userName) {
        return userMapper.queryByUsername(userName);
    }
}
